package com.jason.product.mapper;


import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Component;

@Component
public interface ProductMapper {
    @Update("UPDATE t_product SET store_num = store_num -1 WHERE product_id = #{productId}")
    public void reduceProduct(Long productId);
}
